﻿using System;

namespace Program13
{
    class Program
    {
        public enum Gender
        {

            男,
            女,
            其他
        }
        //结构体
        public struct Person
        {
            public string Name;
            public int Age;
            public Gender Gender;
        }
        public struct MyColor
        {
            public int Red;
            public int green;
            public int blue;
        }
        static void Main(string[] args)
        {
            MyColor color;
            color.Red = 1;
            color.green = 0;
            color.blue = 2;

            Person person;
            person.Name = "张三";
            person.Age = 22;
            person.Gender = Gender.男;

            Person person1;
            person1.Name = "小兰";
            person1.Age = 20;
            person1.Gender = Gender.女;

            Console.WriteLine("姓名：{0}，性别：{1}，年龄：{2}", person.Name, person.Age, person.Gender);
            Console.WriteLine("姓名：{0}，性别：{1}，年龄：{2}", person1.Name, person1.Age, person1.Gender);
            Console.WriteLine(color.Red);
            Console.WriteLine(color.blue);
            Console.WriteLine(color.green);
            Console.ReadLine();
        }
    }
}
